/*
 * @Descripttion:
 * @version:
 * @Author:
 * @Date: 2021-10-26 19:14:25
 */
import Vue from 'vue'
import App from './index.vue'
import router from './router'
import i18n from './lang'

import './icons'
import { JSEncrypt } from 'jsencrypt'
import '@/config/common'

Vue.prototype.$encrypt = function (code) {
  const encrypt = new JSEncrypt()
  encrypt.setPublicKey(
    'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3JFF4wp7OAJUzJ+9ebr5gMRcLIwrQH44kiUDnCfoEFrWFufRKECpcMA4EzYjbh19Zjfr39qQr94yYUEkQsFa025qgU11YArAOCipoZVyZBS8MbzAMFjd5o58CgdadWr2TzfK9tdn43iMJybiRF0EiVaTdiZkCwhOO+JzfQxEqXQIDAQAB'
  )
  return encrypt.encrypt(code)
}

Vue.config.productionTip = false

new Vue({
  i18n,
  router,
  render: h => h(App)
}).$mount('#app')
